import com.sun.javaws.IconUtil;

import java.util.Scanner;
public class ImitateLogIn {
    public static void main(String[] args) {
        String password="aaacd123.";
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入密码:");
        for(int i=0;i<3;i++){
            if(scan.next().equals(password)){
                System.out.println("登陆成功！");
                break;
            }else{
                if(i==2){
                    System.out.println("出错次数过多，已锁定!");
                    break;
                }
                System.out.println("输入错误，请重新输入:");
            }
        }
    }
}
